Accessibility

Inserting an Macromedia Flash Button-Based Link

In this section of the article, you will create an Macromedia Flash button-based link that will either close a browser window or take the visitor to the previous page. Please note that there are issues with Internet Explorer version 6 and Netscape 6.01 that prevent the Macromedia Flash-based back buttons from working correctly. In IE, the user must click on the back button twice for the button to work as expected.

To get started, you will either need to go through the steps discussed on the How to Add a Close Window or Back Link page to create a new page with a different name, or you can delete the link you created in the previous section and reuse the page you have been working on. Either way, you should be starting with a page that has the calendar and table to hold the Macromedia Flash button-based link.

The Macromedia Flash buttons you will be using in this section are available in the download files linked from the first page of this article. The name of the files are close_window_button_grey.swf, back1_lightgrey.swf, and back1_darkgrey.swf. You can also find more Macromedia Flash buttons here.

Use the following steps to insert a Macromedia Flash button-based link into the page.

  1. Place your cursor in the table under the calendar, and select Insert > Flash Movie… from the menu as shown in Figure 11 below.


    Figure 12: Insert Flash Movie

    Figure 11: Insert Flash Movie

  2. Navigate to either the close_window_button_grey.swf, back1_lightgrey.swf, or back1_darkgrey.swf file you downloaded and unzipped on the first page of this article and click Open. The movie will be inserted into your page.

    Note: You won't see the button. As shown in Figure 12 below, you will only see a Macromedia Flash movie symbol.

    Figure 13: Macromedia Flash movie symbol

    Figure 12: Macromedia Flash movie symbol

  3. You don't need to add any JavaScript code to the button. Everything you need for closing the window is included in the Macromedia Flash button.
  4. Preview the page by pressing the F12 key and test your "Close Window" or "Back" button. If it doesn't work, you should download and install the latest version of Macromedia Flash Player.

    Note: You have to install Macromedia Flash Player in Microsoft Internet Explorer—not in Contribute.

  5. Publish your page by clicking the Publish button in the upper left corner of Contribute. You will be prompted to choose a file name. Name the file April2003c.htm and click the publish button to close the Publish New Page dialog.

    Caution:
    •Never add a "Close Window" link to a page if that page will not be opened in a new window. Doing so would force the visitor to relaunch her browser and renavigate to your website.
    •A "Back" link only works if the page was not opened in a new window.

Congratulations! You have successfully used Contribute to create a Macromedia Flash button-based link that closes a browser window.